package com.shuangk.majingze.coolpapa.model;

import android.os.Parcel;
import android.os.Parcelable;


public class UserInfoVo implements Parcelable {

    private int userId;                  // 用户ID
    private String userName;                 // 用户名（手机号）
    private String userNick;                 // 用户昵称
    private String userPwd;                  // 用户密码（32位大写MD5加密）
    private double userBalance;              // 用户余额，浮点型，保留两位小数

    private String userAvatar;               // 用户头像
    private int userSex;                 // 0为男，1为女，默认0
    private int userAge;                 // 用户年龄，默认22
    private String userDesc;                 // 用户个性签名
    private int userLevel;               // 用户等级,默认0
    private String openId_QQ;                // 第三方开放ID
    private String openId_WX;                // 第三方开放ID
    private String openId_WB;                // 第三方开放ID
    private String payPwd;                   // 用户支付密码
    private String deviceNo;                 // 设备编号，按摩椅设备编号
    private double consumeMoney;             // 用户累计消费金额
    private int proxyLevel;             //0为非代理商，默认0，1为代理商lv1，2为lv2
    private int isWifiManager;          //默认0，0为非，1为是

    public int getProxyLevel() {
        return proxyLevel;
    }

    public void setProxyLevel(int proxyLevel) {
        this.proxyLevel = proxyLevel;
    }

    public int getIsWifiManager() {
        return isWifiManager;
    }

    public void setIsWifiManager(int isWifiManager) {
        this.isWifiManager = isWifiManager;
    }

    public double getConsumeMoney() {
        return consumeMoney;
    }

    public void setConsumeMoney(double consumeMoney) {
        this.consumeMoney = consumeMoney;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public int getUserSex() {
        return userSex;
    }

    public void setUserSex(int userSex) {
        this.userSex = userSex;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public String getUserDesc() {
        return userDesc;
    }

    public void setUserDesc(String userDesc) {
        this.userDesc = userDesc;
    }

    public double getUserBalance() {
        return userBalance;
    }

    public void setUserBalance(double userBalance) {
        this.userBalance = userBalance;
    }

    public int getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(int userLevel) {
        this.userLevel = userLevel;
    }

    public String getPayPwd() {
        return payPwd;
    }

    public void setPayPwd(String payPwd) {
        this.payPwd = payPwd;
    }

    public String getOpenId_QQ() {
        return openId_QQ;
    }

    public void setOpenId_QQ(String openId_QQ) {
        this.openId_QQ = openId_QQ;
    }

    public String getOpenId_WX() {
        return openId_WX;
    }

    public void setOpenId_WX(String openId_WX) {
        this.openId_WX = openId_WX;
    }

    public String getOpenId_WB() {
        return openId_WB;
    }

    public void setOpenId_WB(String openId_WB) {
        this.openId_WB = openId_WB;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }


    public UserInfoVo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.userId);
        dest.writeString(this.userName);
        dest.writeString(this.userNick);
        dest.writeString(this.userPwd);
        dest.writeDouble(this.userBalance);
        dest.writeString(this.userAvatar);
        dest.writeInt(this.userSex);
        dest.writeInt(this.userAge);
        dest.writeString(this.userDesc);
        dest.writeInt(this.userLevel);
        dest.writeString(this.openId_QQ);
        dest.writeString(this.openId_WX);
        dest.writeString(this.openId_WB);
        dest.writeString(this.payPwd);
        dest.writeString(this.deviceNo);
        dest.writeDouble(this.consumeMoney);
        dest.writeInt(this.proxyLevel);
        dest.writeInt(this.isWifiManager);
    }

    protected UserInfoVo(Parcel in) {
        this.userId = in.readInt();
        this.userName = in.readString();
        this.userNick = in.readString();
        this.userPwd = in.readString();
        this.userBalance = in.readDouble();
        this.userAvatar = in.readString();
        this.userSex = in.readInt();
        this.userAge = in.readInt();
        this.userDesc = in.readString();
        this.userLevel = in.readInt();
        this.openId_QQ = in.readString();
        this.openId_WX = in.readString();
        this.openId_WB = in.readString();
        this.payPwd = in.readString();
        this.deviceNo = in.readString();
        this.consumeMoney = in.readDouble();
        this.proxyLevel = in.readInt();
        this.isWifiManager = in.readInt();
    }

    public static final Creator<UserInfoVo> CREATOR = new Creator<UserInfoVo>() {
        public UserInfoVo createFromParcel(Parcel source) {
            return new UserInfoVo(source);
        }

        public UserInfoVo[] newArray(int size) {
            return new UserInfoVo[size];
        }
    };
}
